package priv.ln.encapsulation.exer2;

/**
 * ClassName: BookTest
 * Package: priv.ln.encapsulation.exer2
 * Description:
 *
 * @Author 辣辣
 * @Create 2024/6/21 17:07
 * @Version 1.0
 */
public class BookTest {
    public static void main(String[] args) {
        Book book = new Book();

        book.setBookName("红楼梦");
        book.setAuthor("曹雪芹");
        book.setPrice(29.9);
        System.out.println(book.getBookName());
        System.out.println(book.getAuthor());
        System.out.println(book.getPrice());
        book.getInfo();
    }
}
